<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="swoole.installation.html">« 安装</a></li>
      <li style="float: right;"><a href="swoole.resources.html">资源类型 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="swoole.setup.html">安装/配置</a></li>
    <li>运行时配置</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="swoole.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Swoole 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.aio-thread-num" class="link">swoole.aio_thread_num</a></td>
      <td>2</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.display-errors" class="link">swoole.display_errors</a></td>
      <td>On</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.fast-serialize" class="link">swoole.fast_serialize</a></td>
      <td>Off</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.unixsock-buffer-size" class="link">swoole.unixsock_buffer_size</a></td>
      <td>8388608</td>
      <td>PHP_INI_ALL</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.use-namespace" class="link">swoole.use_namespace</a></td>
      <td>On</td>
      <td>PHP_INI_SYSTEM</td>
      <td></td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.enable-coroutine" class="link">swoole.enable_coroutine</a></td>
      <td>On</td>
      <td>PHP_INI_ALL</td>
      <td>Available as of swoole 4.0.0</td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.use-shortname" class="link">swoole.use_shortname</a></td>
      <td>On</td>
      <td>PHP_INI_ALL</td>
      <td>Available as of swoole 4.0.0</td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.enable-preemptive-scheduler" class="link">swoole.enable_preemptive_scheduler</a></td>
      <td>Off</td>
      <td>PHP_INI_ALL</td>
      <td>Available as of swoole 4.4.0</td>
     </tr>

     <tr>
      <td><a href="swoole.configuration.html#ini.swoole.enable-library" class="link">swoole.enable_library</a></td>
      <td>On</td>
      <td>PHP_INI_ALL</td>
      <td>Available as of swoole 4.0.0</td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>
   
     <dt id="ini.swoole.aio-thread-num">
      <code class="parameter">swoole.aio_thread_num</code>
      <span class="type">int</span>
     </dt>

     <dd>

      <p class="para">
       POSIX asynchronous I/O thread number
      </p>
     </dd>

    
    
     <dt id="ini.swoole.display-errors">
      <code class="parameter">swoole.display_errors</code>
      <span class="type">string</span>
     </dt>

     <dd>

      <p class="para">
        This determines whether Swoole errors should be printed to the screen.
      </p>
     </dd>

    
    
     <dt id="ini.swoole.fast-serialize">
      <code class="parameter">swoole.fast_serialize</code>
      <span class="type">string</span>
     </dt>

     <dd>

      <p class="para">
        Whether to enable Swoole fast_serialize.
      </p>
     </dd>

    
    
     <dt id="ini.swoole.unixsock-buffer-size">
      <code class="parameter">swoole.unixsock_buffer_size</code>
      <span class="type">int</span>
     </dt>

     <dd>

      <p class="para">
       Buffer size of Unix socket.
      </p>
     </dd>

    
    
     <dt id="ini.swoole.use-namespace">
      <code class="parameter">swoole.use_namespace</code>
      <span class="type">string</span>
     </dt>

     <dd>

      <p class="para">
        Whether to use PHP namespaces
      </p>
     </dd>

    
   
    <dt id="ini.swoole.enable-coroutine">
     <code class="parameter">swoole.enable_coroutine</code>
     <span class="type">string</span>
    </dt>

    <dd>

     <p class="para">
      Whether to enable coroutine
     </p>
    </dd>

   
   
    <dt id="ini.swoole.use-shortname">
     <code class="parameter">swoole.use_shortname</code>
     <span class="type">string</span>
    </dt>

    <dd>

     <p class="para">
      Whether to enable short aliases
     </p>
    </dd>

   
   
    <dt id="ini.swoole.enable-preemptive-scheduler">
     <code class="parameter">swoole.enable_preemptive_scheduler</code>
     <span class="type">string</span>
    </dt>

    <dd>

     <p class="para">
      Whether to enable preemptive scheduler
     </p>
    </dd>

   
   
    <dt id="ini.swoole.enable-library">
     <code class="parameter">swoole.enable_library</code>
     <span class="type">string</span>
    </dt>

    <dd>

     <p class="para">
      Whether to enable library
     </p>
    </dd>

   

  </dl>

 </p>
</div></div></div></body></html>